<template>
	<view class="content">
		<view class="zonghegedan">
			<view class="zonghegedantitle">
				歌单
			</view>
			<view @tap="send(item.id)" class="zonghe-gedancotent" v-for="(item,index) in songlist" :key="item.id">
				<image :src="item.coverImgUrl" mode=""></image>
				<view>
					<text>{{item.name}}</text>
					<view style="font-size:15upx;color: #6D6D6D;">
						<text>{{item.trackCount}}首,by{{item.creator.nickname}},播放{{item.playCount | count }}</text>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
			send(id) {
				uni.navigateTo({
					url: '/subpag/recommendationList/recommendationList?id=' + id
				})
				console.log('123');
			},
		},
		props: ['songlist'],
		filters: {
			count(v) {
				return v > 10000 ? (v / 10000).toFixed(1) + '万次' : v + '次'
			}
		}
	}
</script>


<style scoped lang="scss">
	// 综合歌单模块

	.zonghegedan {
		display: flex;
		flex-direction: column;
		padding: 30rpx 0 0 0;
		box-sizing: border-box;
		border-bottom: 1px solid #E5E5E5;

		.zonghegedantitle {
			border-top-left-radius: 10px;
			border-top-right-radius: 10px;
			background-color: #fff;
			padding: 30upx;
			font-weight: 600;
			font-size: 17px;
		}

		.zonghe-gedancotent {
			padding: 10rpx 30rpx;
			background-color: #fff;
			display: flex;

			image {
				width: 100upx;
				height: 100upx;
				border-radius: 10px;
			}

			>view {
				display: flex;
				flex-direction: column;
				margin-left: 20upx;
				justify-content: center;
			}
		}

	}



	// 	.zonghe-gedancotent {
	// 		padding: 10upx 30upx;
	// 		background-color: #fff;
	// 		display: flex;
	// 		border: 1px solid red;

	// 		image{
	// 			width: 100upx;
	// 			height: 100upx;
	// 			border-radius: 10px;
	// 			border: 1px solid red;
	// 		}

	// 		>view {
	// 			display: flex;
	// 			flex-direction: column;
	// 			margin-left: 20upx;
	// 			justify-content: center;
	// 		}
	// 	}
	// }
</style>
